const MockJS = require('mockjs')
const code = 200

exports.UserInfo = MockJS.mock({
  code,
  result: {
    user_photo: 'https://thispersondoesnotexist.com/image',
    user_info: {
      name: '@name',
      apartment: '基础开发部',
      level: '4级',
      business: '高级软件开发工程师',
      supervisor: '@first',
      start: '@date'
    },
    'todo_list|4': [{id: '@id', title: '@title(5, 12)'}],
    contact_list: [
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '居住证/积分、落户办理/EHR相关', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '结婚礼金、生育礼金领取/商业保险/体检', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: 'HR综合管理及业务咨询', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '党员办理党组织转入', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '办公用品/名片/资产/文件盖章', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '内网办公/打印机等设备报修/门户系统（wssp）', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: 'NC系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: 'ERP/OA系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '邮箱系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: 'zoom视频会议系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '门户系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: '360安全系统', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
      {id: '@id', 'type|1': ['人事', '党务', '行政', '系统'], event: 'VPN/云桌面', person: '@name', email: '@email', phone: '@integer(13311111111, 13899999999)'},
    ],
    punch_info: {
      normal: '@integer(15, 25)',
      abnormal: '@integer(5, 15)',
      late: '@integer(0, 5)',
      leave: '@integer(0, 5)',
      forget: '@integer(0, 5)',
    }
  }
})

exports.Schedule = MockJS.mock({
  code,
  'result|3': [{
    id: '@id',
    'type|1': [1, 2, 3],
    'title|1': ['14:00 销售部例会', '17:30 项目总结会', '9:00 stand up meeting', '14:00 SMC项目评审会议', '15:30 KMD项目视觉评审会议', '@title(5)']
  }]
})
